<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../common/module/checkA.php");
include_once("../../../../config.php");
include_once("../controller/detail-list.php");
?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include ROOT_PATH_.'/controller/common/module/head.php'; ?>
    <?php include 'modules/head.php'; ?>
    <!--统一载入子系统的样式表-->
    <link href="../asset/css/member.css"      rel="stylesheet" type="text/css"/>
</head>

<body>

<div id="topbar"><?php include ROOT_PATH_.'/controller/common/module/topbar.php'; ?></div>

<div id="container" class="<? echo $system_part ?>">


        <div id="sidebar">
            <?php include ROOT_PATH_.'/controller/common/module/sidebar.php'; ?>
        </div>




<div id="content">

    <!--标题设定-->
    <?php $page_title='人员列表';?>
    <?php include $_SERVER['DOCUMENT_ROOT']. '/controller/common/module/mod-page-title.php'; ?>



<div class="select-box layui-form">
<form action="detail-list.php" >

    <div class="layui-form-item">
        <label class="layui-form-label">关键词</label>
        <div class="layui-input-block">
            <input type="text" name="select_keywords" placeholder="可搜索姓名，备注，身份证，电话" autocomplete="off" class="layui-input" value="<? echo $_REQUEST['select_keywords']?>" >
        </div>
    </div>







    <button class="layui-btn">查找</button>


    <br class="clearfloat"/>
</form>

    <br class="clearfloat"/>
</div>





<!-- 用$system_part .list_boxes来控制来到确认板块信息显示-->
<div class="list-box">



<table class="layui-table">
  <colgroup>
    <col width="80">
    <col width="150">
	<col > 
	<col > 
	<col > 
	<col >
	<col >
	<col >
	<col >
	<col >
	<col width="200">

  </colgroup>
  <thead>
    <tr>
      <th>头像</th>
      <th>姓名</th>
    <th>地区</th>
    <th>企业</th>
      <th>电话</th>
      <th>邮箱</th>
      <th>微信</th>
      <th>标签</th>
      <th>评级</th>
    <th>下次联系</th>
      <th>操作</th>
    </tr> 
  </thead>
  <tbody>



<?php
for ($i = 0; $i < $detailnum; $i++) {
?>


<!--//查看这条信息有无修改申请，有的话就变色，提示修改中-->
<? $applymodify=select_one_line_all_items($table_Prefix."member","sid='".$detail[$i]['nid']."' and applystatus='申请修改'") ;?>


<tr id="item<?echo $detail[$i]['nid']?>" <?if($applymodify['nid']){echo "style='color:red'";$status="审核中";}else{$status="正常";}?>>


    <td><div class="icon" style="background-image: url('/uploadfiles/member/<?echo $detail[$i]['icon']?>')"></div></td>

<td style="color:<? if($detail[$i]['gender']=="男"){echo "#1e9fff";}
                    elseif($detail[$i]['gender']=="女"){echo "#ff1e7b";}
                    else{echo "#ff9900";}?>">
    <?echo $detail[$i]['name']?>
    <span >
        <?if($detail[$i]['gender']=="男"){?>
        <i class="fa fa-male" aria-hidden="true">  </i>
        <?}elseif($detail[$i]['gender']=="女"){?>
        <i class="fa fa-female" aria-hidden="true"></i>
        <?}?>
    </span>
</td>
    <td><span class="els1"><?echo $detail[$i]['address']?></span></td>


    <td><?if($unit_name_list[$detail[$i]['unit']])
        {echo $unit_name_list[$detail[$i]['unit']];}
        else{echo $unit_fullname_list[$detail[$i]['unit']];}?>
    </td>


<td><?echo $detail[$i]['phone']?>   </td>
<td>
    <span >
            <?echo $detail[$i]['email']?>
            <?if ((validate_email($detail[$i]['email']) == false) and
                  ($detail[$i]['email']))
            {echo "<i class='fa fa-question-circle'></i>";}?>

    </span>
</td>

<td><?echo $detail[$i]['weixin']?>  </td>
<td><?echo $detail[$i]['tag']?></td>




<td><?echo $detail[$i]['rank']?></td>

    <td><?echo substr($detail[$i]['checkpoint'],0,10)?>  /
        <span style="background-color: <? if(count_days(date("Y-m-d"),$detail[$i]['checkpoint']) < 15 ) { echo "red";}?>">
        <?echo count_days(date("Y-m-d"),$detail[$i]['checkpoint'])?> 日
    </span>
    </td>


<td>



    <a href="detail-statistic.php?&nid=<? echo $detail[$i]['nid']?><?echo $pagenumber_url.$sortby_url.$navitemed_url.$system_part.$term_nid ?>

<?echo $url_str?>" class="layui-btn layui-btn-sm" target="_blank vftg bgcbcbc" >信息</a>




    <? if((in_array("admin",$quanxian)) or (in_array("删除客户",$quanxian))){?>
        <a href="javascript:void(0)" onclick="delItem (<?php echo $detail[$i]['nid']?>)"
           class="delete layui-btn  layui-btn-sm" > <i class="layui-icon">&#xe640;</i> 删除 </a>
    <?}?>




  </td>
    </tr>
<?}?>

 
  </tbody>
</table>


 

    <!-- todo 这里需要做0判断-->
    <!-- 翻页代码-->
    <?php include ROOT_PATH_ . '/controller/common/module/mod_page_numbers.php'; ?>


<!--content端點01-->

<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>








<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?> </body>
</html>